<?php

namespace App\Http\Controllers\Swoolex;

use App\Http\Controllers\Controller;

class IndexController extends Controller
{

    public function __construct()
    {
        require_once __DIR__ . '/lib/config/config.php';
    }

    /**
     * Instructions:
     * Author: Vijay  <1937832819@qq.com>
     * Time: 2019/2/27 14:24
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function index()
    {
        $assign = [
            'CLIENT_CONNECT_ADDR' => CLIENT_CONNECT_ADDR,
            'CLIENT_CONNECT_PORT' => CLIENT_CONNECT_PORT,
            'SERVER_LISTEN_ADDR' => SERVER_LISTEN_ADDR,
            'SERVER_LISTEN_PORT' => SERVER_LISTEN_PORT
        ];
        return view('swoolex.index.index', $assign);
    }
}
